home *** CD-ROM | disk | FTP | other *** search
/ Visual Cafe 3 / Visual Cafe 3.ISO / Vcafe / JFC.bin / HTMLStyleCallbackDefault.java < prev    next >
Text File  |  1998-06-30  |  2KB  |  66 lines

  1. /*
  2.  * @(#)HTMLStyleCallbackDefault.java    1.5 97/10/10
  3.  * 
  4.  * Copyright (c) 1997 Sun Microsystems, Inc. All Rights Reserved.
  5.  * 
  6.  * This software is the confidential and proprietary information of Sun
  7.  * Microsystems, Inc. ("Confidential Information").  You shall not
  8.  * disclose such Confidential Information and shall use it only in
  9.  * accordance with the terms of the license agreement you entered into
  10.  * with Sun.
  11.  * 
  12.  * SUN MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF THE
  13.  * SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
  14.  * IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
  15.  * PURPOSE, OR NON-INFRINGEMENT. SUN SHALL NOT BE LIABLE FOR ANY DAMAGES
  16.  * SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR DISTRIBUTING
  17.  * THIS SOFTWARE OR ITS DERIVATIVES.
  18.  * 
  19.  */
  20. package com.sun.java.swing.text.html;
  21.  
  22.  
  23.  
  24. /**
  25.  * HTMLStyleCallbackDefault
  26.  *
  27.  * THe default implementation for the HTMLStyleCallback
  28.  *
  29.  * @version 1.5 10/10/97
  30.  * @author Makarand Gokhale
  31.  */
  32. class HTMLStyleCallbackDefault implements HTMLStyleCallback{
  33.     
  34.     public static boolean  doDebug=false;
  35.     
  36.     public void tagAction(String tag) {
  37.          debugOut("tag Action:tag:"+tag);
  38.          }
  39.     public void depTagAction() {
  40.          debugOut("Dep Tag Action:");
  41.          }
  42.     public void classAction(String regclass) {
  43.          debugOut("class Action:class:"+regclass);
  44.          }
  45.     public void pseudoclassAction(String pseudoclass) {
  46.          debugOut("pseudoclass Action:pseudoclass:"+pseudoclass);
  47.          }
  48.     public void propertyAction(String property) {
  49.          debugOut("property Action:property:"+property);
  50.          }
  51.     public void valueAction(String value) {
  52.          debugOut("Value Action:Value:"+value);
  53.          }
  54.     public void propsOpenAction() {
  55.          debugOut("Properties Open Action");
  56.          }
  57.     public void propsCloseAction() {
  58.          debugOut("Properties Close Action");
  59.          }
  60.     public  static synchronized void  debugOut(String s){
  61.            if(doDebug)
  62.         System.out.println(s);
  63.     }
  64.  
  65. }
  66.